<?php
use yii\helpers\Html;
use \yii\widgets\ActiveForm;
?>
<?php $form = ActiveForm::begin(); ?>

    <?php //echo $form->field($model, 'name')->textInput()->hint("请输入用户名"); ?>

    <?php echo $form->field($model, 'name'); ?>

    <!--<?php //echo $form->field($model, 'email')->input('email'); ?>-->

    <?php echo $form->field($model, 'email'); ?>

    <div class="form-group">
        <?= Html::submitButton('Submit', ['class' => 'btn btn-primary']) ?>
    </div>

<?php ActiveForm::end(); ?>
